package com.ayou.session;

import java.util.List;
import java.util.Map;

/**
 * @description: 增删改查接口
 * @author: ayouman
 * @date: 2024/7/2 14:29
 */
public interface SqlSession {
    <T> T selectOne(String mpId, Map<String, Object> params);
    <T> List<T> selectList(String mpId, Map<String, Object> params);

    int insert(String mpId, Map<String, Object> params);
    int delete(String mpId, Map<String, Object> params);
    int update(String mpId, Map<String, Object> params);

    <T> T getMapper(Class<T> clazz);

    Configuration getConfiguration();
}
